function SiteCtrl($rootScope, $scope, $http, $location) {

	$scope.pageSize = 20;
	
	$scope.manufacturerList = [];
	$scope.classList = [];
	$scope.categories = [];
	
	$scope.initCategories = function() {
		$http.post(DOMAIN + '/data/categories').success(function(data) {
			$scope.categories = data;
		});
	};
	
	// ------------- INIT-------------
	$scope.initCategories();
}
SiteCtrl.$inject = [ '$rootScope', '$scope', '$http', '$location'];

var app=angular.module('home');
app.filter('startFrom', function() {
    return function(input, start) {
        start = +start; //parse to int
        return input.slice(start);
    };
});